/* ======================================= */
/* TIPS & TRICKS PAGINA (zelfde look als AI-tools) */
/* ======================================= */

.tips-section {
  padding: 2rem;
}

.tips-section h1 {
  text-align: center;
  font-size: 2rem;
  color: var(--link-color);
  margin-bottom: 0.5rem;
}

.tips-section .intro {
  text-align: center;
  color: #aeb5be;
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.tips-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Card */
.tip-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;

  border-radius: 12px;
  padding: 1.5rem;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.015) 55%,
    rgba(0, 0, 0, 0) 100%
  );
  border: 1px solid color-mix(in srgb, #ffffff 10%, var(--border-color));
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.tip-card:hover {
  transform: translateY(-6px);
  border-color: var(--link-color);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02) 55%,
    rgba(0, 0, 0, 0) 100%
  );
}

/* Tekst */
.tip-content {
  flex: 1;
}

.tip-content h2 {
  color: var(--link-color);
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.tip-content .date {
  color: #9ca3af;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.75rem;
}

.tip-content p {
  font-size: 0.95rem;
  color: #aeb5be;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

/* Links in tips */
.tip-content a {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 600;
}

.tip-content a:hover {
  text-decoration: underline;
}

/* Code/KBD in tekst */
.tip-content code,
.tip-content kbd {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(0, 0, 0, 0) 90%
  );
  border: 1px solid color-mix(in srgb, #ffffff 10%, var(--border-color));
  border-radius: 6px;
  padding: 2px 6px;
  font-family: "Roboto Mono", monospace;
  font-size: 0.85rem;
  color: var(--link-color);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

/* Tags (bulletproof consistent) */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0.25rem;
}

.tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  white-space: nowrap;
  line-height: 1;
  height: 28px;

  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.8rem;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(0, 0, 0, 0) 85%
  );
  border: 1px solid color-mix(in srgb, #ffffff 10%, var(--border-color));
  color: var(--text-color);
}

/* Afbeelding rechts */
.tip-image {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 10px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
  transition: transform 0.25s ease;
}

.tip-card:hover .tip-image {
  transform: scale(1.07);
}

/* Mobiel */
@media (max-width: 768px) {
  .tips-section {
    padding: 1rem;
  }

  .tip-card {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  .tip-image {
    width: 80px;
    height: 80px;
    margin-top: 0.5rem;
  }

  .tags {
    justify-content: center;
  }
}

/* ======================================= */
/* TIPS & TRICKS LIGHT MODE */
/* ======================================= */
:root.light-mode .tips-section h1 {
  color: #0969da;
}

:root.light-mode .tips-section .intro {
  color: #24292f;
}

:root.light-mode .tip-card {
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
  border: 1px solid color-mix(in srgb, #0969da 10%, #d0d7de);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

:root.light-mode .tip-card:hover {
  border-color: #0969da;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
  background: linear-gradient(180deg, #ffffff, #f6f8fa);
}

:root.light-mode .tip-content h2 {
  color: #0969da;
}

:root.light-mode .tip-content .date {
  color: #57606a;
}

:root.light-mode .tip-content p {
  color: #24292f;
}

:root.light-mode .tip-content a {
  color: #0969da;
}

:root.light-mode .tip-content code,
:root.light-mode .tip-content kbd {
  background: linear-gradient(180deg, #ffffff, #f6f8fa);
  border: 1px solid #d0d7de;
  color: #0969da;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

:root.light-mode .tags span {
  background: #f6f8fa;
  border: 1px solid #d0d7de;
  color: #24292f;
}